<?php use_helper('Javascript') ?>

    <td>
      <?php echo 'Localidad' //echo $form['pvd_localidad']->renderLabel() ?>
    </td>
    <td>
      <?php echo $form['pvd_localidad']->renderError() ?>

      <?php echo $form['pvd_localidad']->render($attributes instanceof sfOutputEscaper ? $attributes->getRawValue() : $attributes) ?>

      <?php //if ($help || $help = $form['cli_localidad']->renderHelp()): ?>
        <div class="help"><?php //echo __($help, array(), 'messages') ?></div>
      <?php //endif; ?>
    </td>
  </tr>

<?php echo observe_field(
        'proveedores_filters_pvd_provincia',
        array(
            'update'   => 'proveedores_filters_pvd_localidad',
            'url'      => 'proveedores/localidadesPorProvincia',
            'method'   => 'get',
            'with'     => "'pcia_id=' + \$F('proveedores_filters_pvd_provincia') + '&loc_id=' + \$F('proveedores_filters_pvd_localidad')",
)) ?>

<?php echo javascript_tag(
  remote_function(array(
    'update'  => 'proveedores_filters_pvd_localidad',
    'url'     => 'proveedores/localidadesPorProvincia',
    'method'   => 'get',
    'with'     => "'pcia_id=' + \$F('proveedores_filters_pvd_provincia') + '&loc_id=' + \$F('proveedores_filters_pvd_localidad')",
  ))
) ?>